<template lang="">
    <div>
        <table>
            <tr v-for='i in list' :key="i.id">
                <!-- <td>{{i.username}}</td>
                <td >{{i.trason}}</td>
                <td>{{i.add_time}}</td> -->
                <td>{{i.title}}</td>
                <td v-if='i.status ==2'>审核中</td>
                <td v-else-if='i.status ==3'>审核中</td>
                <td v-else-if='i.status ==1 && i.nexta==0'>审核失败，查看
                    <router-link :to="{name:'params',query:{'taskid':i.id,'id':i.workid}}">修改</router-link>
                    
                </td>
                <td v-else>待审核</td>
                
            </tr>

        </table>
    </div>
</template>
<script>
import axios from '../components/http/axios'
export default {
    data(){
        return{
            list:[],
          
        }
    },
    methods: {
        getmytask(){
        
            axios('taskM?id=' + localStorage.getItem('userid'),'get').then(res=>{
                console.log(res);
              
                this.list = res.list
            })
        }
    },
    mounted() {
        this.getmytask()
    },
}
</script>
<style lang="">
    
</style>